from django.shortcuts import render
from django.shortcuts import render_to_response
from django.template import RequestContext
from search.models import Hotel


def hotel_list(request):

    hotel_info = Hotel.objects.raw("SELECT * from hotel")

    hotel_data = {
        "hotel_detail" : hotel_info
    }
    print hotel_data
    return render_to_response('search/details.html',hotel_data,context_instance = RequestContext(request))